package com.sxjh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zixin
 * @since 2021-06-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cb_variation_log")
@ApiModel(value="VariationLog对象", description="")
public class VariationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "合同号")
    @TableField("contract")
    private String contract;

    @ApiModelProperty(value = "数量")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "被拆合同号")
    @TableField("contract_by")
    private String contractBy;

    @ApiModelProperty(value = "被拆派车单明细ID")
    @TableField("dt_id")
    private Integer dtId;

    @ApiModelProperty(value = "车号")
    @TableField("plate_number")
    private String plateNumber;

    @ApiModelProperty(value = "原发数量")
    @TableField("net_weight")
    private BigDecimal netWeight;

    @ApiModelProperty(value = "实收重量")
    @TableField("weighbridge_weight")
    private BigDecimal weighbridgeWeight;

    @ApiModelProperty(value = "结算单价")
    @TableField("settlement_price")
    private BigDecimal settlementPrice;

    @ApiModelProperty(value = "供货日期")
    @TableField("dispatch_date")
    private LocalDateTime dispatchDate;

    @ApiModelProperty(value = "创建人")
    @TableField("created_by")
    private Integer createdBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新人")
    @TableField("updated_by")
    private Integer updatedBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_at", fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除人")
    @TableField("deleted_by")
    private Integer deletedBy;

    @ApiModelProperty(value = "删除时间")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;


}
